
#include <stm32f10x.h>

int main()
{

#if 0	
	//APIOA ʱ�ӳ�ʼ��
	unsigned int * p=(unsigned int*)0x40021018;
	*p |= 0x1<<2;
	
	//A0 �������
	p=(unsigned int*)0x40010800;
	*p = *p & ~0xf | 0x1;
	
	
	//A0�͵�ƽ
	p=(unsigned int*)0x4001080c;
	*p &= ~0x1;

#endif

	RCC->APB2ENR |= 0x1 << 2;

	GPIOA->CRL = GPIOA->CRL & ~0xF | 0x1;

	GPIOA->ODR &= ~0x1;

	while (1)
		;

	return 0;
}
